package com.burstly.lib.currency;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class BalanceUpdateInfo
{
  private int mChange;
  private final String mCurrency;
  private int mNewTotal;
  private int mOldTotal;

  private BalanceUpdateInfo(String paramString, int paramInt1, int paramInt2, int paramInt3)
  {
    this.mCurrency = paramString;
    this.mOldTotal = paramInt1;
    this.mNewTotal = paramInt2;
    this.mChange = paramInt3;
  }

  public static BalanceUpdateInfo createFrom(UserCurrencyAccount paramUserCurrencyAccount)
  {
    int i = paramUserCurrencyAccount.getActualBalance();
    int j = paramUserCurrencyAccount.getOldTotalCurrencyAmount();
    return new BalanceUpdateInfo(paramUserCurrencyAccount.getCurrency(), j, i, i - j);
  }

  public static Map<String, BalanceUpdateInfo> createFrom(Map<String, UserCurrencyAccount> paramMap)
  {
    HashMap localHashMap = new HashMap();
    Iterator localIterator = paramMap.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      localHashMap.put(localEntry.getKey(), createFrom((UserCurrencyAccount)localEntry.getValue()));
    }
    return localHashMap;
  }

  public int getChange()
  {
    return this.mChange;
  }

  public String getCurrency()
  {
    return this.mCurrency;
  }

  public int getNewTotal()
  {
    return this.mNewTotal;
  }

  public int getOldTotal()
  {
    return this.mOldTotal;
  }

  void setChange(int paramInt)
  {
    this.mChange = paramInt;
  }

  void setNewTotal(int paramInt)
  {
    this.mNewTotal = paramInt;
  }

  void setOldTotal(int paramInt)
  {
    this.mOldTotal = paramInt;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.currency.BalanceUpdateInfo
 * JD-Core Version:    0.6.2
 */